Skip to content

Conversation

@ickshonpe
Copy link
Contributor

@ickshonpe ickshonpe commented Nov 21, 2025

Objective

Add helper functions to ComputedNode that return the bounds of the node's border, padding, and content areas.

Solution

Add helper functions border_box, padding_box, and content_box to ComputedNode.

Included a release note. These changes are very trivial and don't really need one, but I've got quite a few more less trivial changes to ComputedNode that I want to add later.

Testing

This PR also includes a couple of trivial tests.

@ickshonpe ickshonpe added A-UI Graphical user interfaces, styles, layouts, and widgets M-Release-Note Work that should be called out in the blog due to impact D-Straightforward Simple bug fixes and API improvements, docs, test and examples S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Nov 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-UI Graphical user interfaces, styles, layouts, and widgets D-Straightforward Simple bug fixes and API improvements, docs, test and examples M-Release-Note Work that should be called out in the blog due to impact S-Needs-Review Needs reviewer attention (from anyone!) to move forward

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant